<?php

class Default_Model_Social extends Zend_Db_Table_Abstract{
    public $_name="social";            
    public function getData(){
		$query = $this->select()          
                        ->from($this->_name);                                                 
        return $this->fetchAll($query);
    }    
    public function getDataDisplay(){
        $query=$this->select()            
                        ->from($this->_name)
                        ->where('display = 1');                
        return $this->fetchAll($query);
          
    }
    public function add(){
          
    }
    public function updateCat($data,$id){
        $this->update($data,"id=$id");          
    }
}